<div
  class="w-full"
  *ngIf="isCode; else other"
  [innerHTML]="html | safeHtml"
  #root
></div>
<ng-template #other>
  <img
    class="bgimg"
    [src]="data.src"
    draggable="false"
    [ngStyle]="{ height: height <= 0 ? '' : height + 'px', 'object-fit': fit }"
  />
</ng-template>
